import { http } from '@/utils/http/axios';

export interface UpdateRoleAuth{
  authLists:string
  roleDesc:string
  roleId:number
  roleName:string
}

/**
 * @description: 角色列表
 */
export function getRoleList() {
  return http.request({
    url: '/systemUserManager/system/user/getRoleLists',
    method: 'GET',
  });
}

/**
 * 更新角色权限
 */
export function updateRoleAuth(params:UpdateRoleAuth) {
  return http.request({
    url: '/systemUserManager/system/user/authChange',
    method: 'POST',
    params
  });
}
